
module.exports = {
  transpileDependencies: ['@dcloudio/uni-ui'],
  configureWebpack: {
    resolve: {
      alias: {
        '@dcloudio/uni-ui': '@dcloudio/uni-ui/lib'
      }
    }
  },
  chainWebpack: config => {
    // 添加对uni-ui的处理
    config.module
      .rule('vue')
      .use('vue-loader')
      .tap(options => {
        return options
      })
  },
  // 解决Rollup解析问题
  build: {
    rollupOptions: {
      external: []
    }
  }
}